package com.imooc.order.exception;

import com.imooc.order.enums.ResultEnum;
import lombok.Getter;

/**
 * @author Jiayuan
 * @version 1.0
 * @description:
 * @time 11/10/2018 9:43 AM
 */
@Getter
public class OrderException extends  RuntimeException{

    private Integer code;

    public OrderException(ResultEnum resultEnum){
        super(resultEnum.getMessage());
        this.code = resultEnum.getCode();
    }
}
